<?php

namespace app\admin\service;

use app\admin\dao\ChainDao;
use app\admin\model\UM as UM;
use think\Collection;

/**
 * Class PromotionChainService
 * @package app\admin\service
 */
class PromotionChainService
{
    // dao
    private ChainDao $chainDao;

    public function __construct(ChainDao $chainDao)
    {
        $this->chainDao = $chainDao;
    }

    /**
     * 列表
     * @return Collection
     */
    public function index(): Collection
    {
        //这里如果要修改查询，建议把查询放到dao层去
        return $this->chainDao->selectOptions();
    }

}
